home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
ada
/
atutr202.zip
/
altchar.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-04
|
767b
|
28 lines
/*
ALTCHAR.C Ver. 2.02 4-SEP-1992
Software Innovations Technology
1083 Mandarin Drive NE, Palm Bay, FL 32905-4706 (407)951-0233
This file is for use with UNIX.ADA.
ALTCHAR.C is a simple solution to the single-character input problem.
It was sent to us by Mr. Richard Conn, 2700 Bowline Court, Maineville,
OH 45039. Software Innovations Technology is grateful to Mr. Conn for
permission to include ALTCHAR.C with ADA-TUTR.
For this to work, surround the ada_tutr invocation with
stty raw
ada_tutr
stty -raw
*/
#include <stdio.h>
char onechar()
{
char c;
c = getchar();
return (c);
}